<template>
  <div class="basic-card">
    <div class="top">
      <img :src="managerInfo.headImgUrl || avatarImg" alt="" />
      <div class="name-container">
        <span class="name">{{ managerInfo.name || "-" }}</span>
        <span class="rank">{{ managerInfo.financialPosition || "-" }}</span>
      </div>
    </div>
    <div class="tag-list" v-if="managerInfo.financialTag">
      <div class="tag" v-for="(tag,index) in managerInfo.financialTag.split(',')" :key="index">
        {{tag}}
      </div>
    </div>
  </div>
</template>
<script>
import avatarImg from "@/assets/images/my/avatar.png";

export default {
  props: {
    managerInfo: {
      type: Object,
      default: {},
    },
  },
  data() {
    return {
      avatarImg,
    };
  },
  components: {},
};
</script>
<style lang='scss' scoped>
.basic-card {
  background: #fff;
  border-radius: 12px;
  min-width: 90%;
  padding: 10px;
  min-height: 100px;
  box-shadow: darkgrey 2px 2px 10px 2px;
  .top {
    display: flex;
    align-items: center;
    img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
    }
    .name-container {
      margin-left: 10px;
      .name {
        font-size: 16px;
        font-weight: bold;
      }
      .rank {
        color: #ccc;
        font-size: 13px;
        margin-left: 5px;
      }
    }
  }

  .tag-list {
    margin-top: 10px;
    color: #dab374;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    .tag {
      border-radius: 8px;
      border: 1px solid #dab374;
      padding: 5px;
      font-size: 13px;
      margin: 2px 5px;
    }
  }
}
</style>